home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / opalvisn / lsidocs.lha / Include / Opal / paper.h < prev   
Encoding:
C/C++ Source or Header  |  1993-07-28  |  1.3 KB  |  54 lines

  1. #ifndef PAPER_H
  2. #define PAPER_H
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #include "exec/types.h"
  6. #endif
  7.  
  8. #ifndef    LIBRARIES_DOS_H
  9. #include "libraries/dos.h"
  10. #endif
  11.  
  12.  
  13.  
  14. struct PaperInfo
  15.     { USHORT OPVersion;
  16.       USHORT OPRevision;
  17.       BOOL (*Build_Request) (SHORT Width,SHORT Height,SHORT Flags,struct IntuiText *Text,
  18.         struct Gadget *OtherGads,void (*GadgetFunc)(),
  19.         void (*InitFunc)(),void (*MMFunc)(),SHORT HelpX,SHORT HelpY,
  20.         STRPTR BaseName, STRPTR *Context);
  21.       void (*User_Message) (char *Mess);
  22.       BOOL (*Ask_User) (char *Mess);
  23.       BOOL (*File_Req) (char *Hail,char *Extension, char *Path, char *FileName);
  24.       void (*OPEndRequest)(void);
  25.       struct Screen *OpalScreen;
  26.       struct Window *OpalWindow;
  27.       void (*Refresh_Menu)(void);
  28.       BOOL (*Build_Req_Tags) (struct TagItem *tagList);
  29.     };
  30.  
  31.  
  32. struct PaperConfig
  33.     { ULONG Flags;        /* Not currently used        */
  34.       UWORD Courseness;    /* Paper Courseness (or depth)    */
  35.       char PaperName[30];
  36.       BPTR Segment;
  37.       SHORT PageWidth;
  38.       SHORT PageHeight;
  39.       SHORT Variant;
  40.       SHORT NumVariants;
  41.       char **VariantText;
  42.       UBYTE (*Paper_Func) (SHORT x, SHORT y);
  43.       void (*CleanUp) (void);
  44.       void (*Paper_Options) (void);
  45.       struct PaperInfo *PaperInfo;
  46.       USHORT PaperVersion;        /* version of opalpaint paper type */
  47.       USHORT PaperRevision;        /*  was written for. */
  48.     };
  49.  
  50.  
  51. #endif
  52.  
  53.  
  54.